<?php

//kalau mau mengubah FM ini, harus diubah juga di config/config.php
//default adalah MY
class User_model extends FM_Model
{
  //protected $_table = 'users'; //p.10 no need it, since we already add $_table from get_class function
  public function checkUserPassword($email,$password){
    $this->db->where('email',$email);
    $this->db->where('password',md5($password));
    $this->db->limit(1);
    return $this->db->get('user')->row();
  }
}